#ifndef SORT_SELECT_HPP
#define SORT_SELECT_HPP

#include "../common.hpp"

YFWZ100_NS_BEGIN

template<typename T>
void select_sort(T arr[], int start, int end)
{
  for (size_t i = start; i < end; i++) {
    for (size_t j = i + 1; j < end; j++) {
      if (arr[i] > arr[j]) {
        T t = arr[i];
        arr[i] = arr[j];
        arr[j] = t;
      }
    }
  }
}

YFWZ100_NS_END

#endif//SORT_SELECT_HPP
